﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebService1
{
    public class User
    {
        #region Variables

        public string userName;
        public string password;
        public bool online = false;
        public int Won = 0;
        public int Lost = 0;
        public bool inviting = false;

        #endregion
        #region Methods

        /// <summary>
        /// This constructor creates a user for the signup procedure.
        /// </summary>
        public User(string name, string pass)
        {
            userName = name;
            password = pass;
        }

        /// <summary>
        /// This constructor creates a user for reading from the database.
        /// </summary>
        public User(string name, string pass, int won, int lost)
        {
            userName = name;
            password = pass;
            Won = won;
            Lost = lost;
        }

        #endregion
    }
    public class invite
    {
        public string inviter;
        public string invitee;
        public int response; // 1 = true, 2 = false.
        public int type; // 0 = small, 1 = medium, 2 = big.
    }
}